package com.hub.frame.service.security;

import com.hub.utils.ApiResultObject;
import com.hub.frame.pojo.Security;

/**
 * @author hub
 */
public interface IAuthService {

    /**
     * 缓存用户登录信息
     * @param userId
     * @param roleId
     * @param userName
     * @return
     * @throws Exception
     */
     Security setAuthInfo(String userId, String roleId, String userName) throws Exception;

    /**
     * 删除用户登录信息缓存
     * @param token
     * @return
     */
    ApiResultObject removeAuthInfo(String token);

}
